<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	    		xmlns:ui="http://java.sun.com/jsf/facelets"
	  			xmlns:h="http://java.sun.com/jsf/html"
	  			xmlns:f="http://java.sun.com/jsf/core"
	  			xmlns:s="http://jboss.org/schema/seam/taglib"
				template="template.xhtml">

<!-- content -->
<ui:define name="content">
<div class="section">
	<h1>Change Your Password</h1>
</div>
<div class="section">
	<h:form id="setpassword">
		<fieldset>
		    
		    <s:decorate id="PasswordDecorate" template="edit.xhtml">
		    	<ui:define name="label">Password</ui:define>
		    	<h:inputSecret id="password" value="#{user.password}" required="true" />
		    </s:decorate>
			
			<s:decorate id="VerifyDecorate" template="edit.xhtml">
				<ui:define name="label">Verify:</ui:define>
				<h:inputSecret id="verify" value="#{changePassword.verify}" required="true"/>
			</s:decorate>
			
			<div class="entry errors">
				<h:messages id="messages" globalOnly="true"/>
			</div>
			
			<div class="entry">
				<div class="label">&#160;</div>
				<div class="input">
					<h:commandButton id="change" value="Change" action="#{changePassword.changePassword}"/>&#160;
					<s:button id="cancel" value="Cancel" view="/main.xhtml"/>
				</div>
			</div>
			
		</fieldset>
		
	</h:form>
</div>
</ui:define>

<!-- sidebar -->
<ui:define name="sidebar"></ui:define>

</ui:composition>